﻿namespace JiShiBen.UnitTests
{
	public abstract class TestBase<T> where T : new()
	{
		protected TestBase()
		{
			InitializeTest();
		}

		public T TestSubject { get; set; }

		protected abstract T CreateSubjectInstance();

		protected void InitializeTest()
		{
			TestSubject = CreateSubjectInstance();
		}
	}
}
